var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render(
    'index',
    {
      title: 'Express的标题',
      list: [
        {
          name: '张三',
          age: 19
        },
        {
          name: '李四',
          age: 29
        },
        {
          name: '王麻子',
          age: 19
        },
        {
          name: '小沈阳',
          age: 38
        },
      ]
    });
});

module.exports = router;
